package com.marco.polo.travel.service;

import com.marco.polo.travel.mapper.MessageMapper;
import com.marco.polo.travel.model.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    private MessageMapper messageMapper;

    public List<Message> getMessage() {
        return messageMapper.getMessage();
    }

    public void insertMessage(Message message) {
        messageMapper.insertMessage(message);
    }
}
